.home {
  height: calc(100% - 50px);
  overflow: scroll;
  // 顶部定位和搜索
  .head {
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    height: 44px;
    line-height: 44px;
    background-color: #fff;
    padding: 0 12px;
    z-index: 10;
    .location {
      max-width: 75px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .search {
      flex: 1;
      margin-left: 16px;
      span {
        font-size: 14px;
        color: #c8c9cf;
        margin-left: 4px;
      }
    }
  }

  .main {
    margin-top: 44px;
  }
  // 轮播图
  .swiper {
    height: 200px;
    img {
      width: 100%;
      height: 100%;
    }
    ::v-deep .van-swipe__indicator {
      background-color: #333;
    }
  }
  // 导航
  .channels {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
    .channel-item {
      text-align: center;
      img {
        width: 29px;
        height: 29px;
      }
      .name {
        margin: 12px 0;
      }
    }
  }
  // 商品制造商
  .brand {
    background-color: #fff;
    margin-top: 10px;
    &-head {
      text-align: center;
      padding: 20px 0;
    }
    .list {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin: 0 4px;
      .item {
        position: relative;
        width: 49.4%;
        height: 127px;
        margin-bottom: 4px;
        img {
          width: 100%;
          height: 100%;
        }
        .info {
          position: absolute;
          top: 0;
          padding: 4px;
          div {
            margin: 12px 0;
          }
        }
      }
    }
  }
  // 新品推荐
  .newGoods {
    margin-top: 8px;
    &-head {
      height: 130px;
      text-align: center;
      padding-top: 18px;
      background: url("../../assets/images/bgnew.png") no-repeat;
      background-size: 100% 100%;
      color: #8c9bae;

      .title {
        margin: 16px 0;
        font-size: 16px;
      }

      .more {
        width: 90px;
        height: 25px;
        line-height: 25px;
        background-color: #d8e4f0;
        margin: 0 auto;
      }
    }
    .list {
      overflow-x: auto;
      white-space: nowrap;
      margin-top: 8px;
      .item {
        display: inline-block;
        width: 140px;
        background-color: #fff;
        margin-right: 1px;
        img {
          width: 100%;
          height: 140px;
        }
        .info {
          padding: 0 4px;
          p {
            margin: 8px 0;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .name {
            font-size: 15px;
            font-weight: 700;
          }
          .desc {
            font-size: 12px;
            color: #8a8a8a;
          }
          .price {
            color: #9c3232;
          }
        }
      }
    }
  }

  // 人气推荐
  .hotGoods {
    margin-top: 8px;
    &-head {
      height: 130px;
      text-align: center;
      padding-top: 18px;
      background: url("../../assets/images/bgtopic.png") no-repeat;
      background-size: 100% 100%;
      color: #b1a279;

      .title {
        margin: 16px 0;
        font-size: 16px;
      }

      .more {
        width: 90px;
        height: 25px;
        line-height: 25px;
        background-color: #f4e9cb;
        margin: 0 auto;
      }
    }
    .list {
      overflow-x: auto;
      white-space: nowrap;
      margin-top: 8px;
      .item {
        display: inline-block;
        width: 140px;
        background-color: #fff;
        margin-right: 1px;
        img {
          width: 100%;
          height: 140px;
        }
        .info {
          padding: 0 10px;
          p {
            margin: 9px 0;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .name {
            font-size: 15px;
            font-weight: 700;
          }
          .desc {
            font-size: 12px;
            color: #8a8a8a;
          }
          .price {
            color: #9c3232;
          }
        }
      }
    }
  }

  // 精选专题
  .topic {
    background-color: #fff;
    &-head {
      text-align: center;
      padding: 18px;
      img {
        width: 16px;
        height: 16px;
        margin-left: 4px;
        vertical-align: middle;
      }
    }
    .list {
      overflow-x: auto;
      white-space: nowrap;
      .item {
        display: inline-block;
        width: 287px;
        background-color: #fff;
        margin: 0 8px;
        img {
          width: 100%;
          height: 162px;
          border-radius: 8px;
        }
        .info {
          &-head {
            display: flex;
            justify-content: space-between;
            margin: 5px 0 0;
            .title {
              font-size: 15px;
              font-weight: 700;
            }
            .price {
              color: #9c3232;
              margin: 5px 0 15px;
            }
          }
          .subtitle {
            color: #8a8a8a;
            font-size: 12px;
            text-align: left;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin: 0 0 20px;
          }
        }
      }
    }
  }
  // 好物商品列表

  .newCategoryList {
    .category-head {
      text-align: center;
      padding: 12px 0;
    }
    .list {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      margin: 0 4px;
      .item {
        width: 49%;
        height: 214px;
        background-color: #fff;
        text-align: center;
        margin-bottom: 8px;
        img {
          width: 151px;
          height: 151px;
        }
        .name {
          text-align: left;
          margin: 10px 0;
          padding: 0 10px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .price {
          margin: 6px 0;
          text-align: left;
          color: #9c3232;
          padding: 0 10px;
        }
      }
      // 查看更多
      .more {
        width: 49%;
        height: 214px;
        background-color: #fff;
        text-align: center;
        margin-bottom: 8px;
        font-size: 16px;
        p {
          margin: 60px 0 30px;
        }
        img {
          width: 35px;
          height: 35px;
        }
      }
    }
  }
}
